# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2023年02月23日
"""
import docx
# from docx.enum.text import WD_ALIGN_PARAGRAPH

myDocument = docx.Document("散文名篇.docx")

for myParagraph in myDocument.paragraphs:
	for myRun in myParagraph.runs:
		# 创建w元素
		myW=docx.oxml.shared.OxmlElement('w:w')
		# 使用w元素设置扁平拉伸值(默认为100,即100%100)
		myW.set(docx.oxml.ns.qn('w:val'),'200')
		myRun.element.rPr.append(myW)
myDocument.save("02散文名篇.docx")
